package cn.xjt.FunctionIinterface;

import java.sql.SQLOutput;

/**
 * @author xujiangtao
 * @create 2020-08-05-12:28
 */
public class demo {
    public static void shou(myinterface inter)
    {
        inter.run();
    }

    public static void main(String[] args) {
        shou(new interfaceimp(){
            @Override
            public void run() {
                System.out.println("你好啊");
            }
        });
        shou(()->{
            System.out.println("你是谁");
        });
    }
}
